﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AccountsDomain
{
  public  class AccountingRule
    {
        #region Properties
        public int ID { get; set; }
        public string Rule { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; }
        #endregion

        #region ForeignKeyProperties
        public int AccountNatureID { get; set; }
        public int AccountTypeID { get; set; }
        public int AccountPostingTypeID { get; set; } 
        #endregion

        #region NavigationalProperties
      [ForeignKey("AccountNatureID")]
        public virtual AccountNature AccountNature { get; set; }
      [ForeignKey("AccountTypeID")]
        public virtual AccountType AccountType { get; set; }
      [ForeignKey("AccountPostingTypeID")]
        public virtual AccountsPostingType PostingType { get; set; }
        #endregion
        
    }
}
